<HTML><HEAD><TITLE>toplevel_init(?Type)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(toplevel)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>toplevel_init(?Type)</H1>
Initialize a toplevel
<DL>
<DT><EM>Type</EM></DT>
<DD>one of the atoms 'tty' or 'gui'
</DD>
</DL>
<H2>Description</H2>

    	Initializes streams and event handlers in preparation to
	a call to toplevel/0. Two variants of toplevel loop can be
	selected: command line oriented (tty) or server oriented
	(gui). The latter is intended for an ECLiPSe which is
	embedded or remote-interfaced to a GUI-based host program.
    
<H2>See Also</H2>
<A HREF="../../lib/toplevel/toplevel-0.html">toplevel / 0</A>, <A HREF="../../lib/toplevel/break-0.html">break / 0</A>
</BODY></HTML>
